package com.mspbots.rule.exceptions.ticket;


import com.mspbots.cw.request.TenantTicketDTO;
import org.jeasy.rules.annotation.Fact;

/**
 * com.mspbots.rule.exceptions.tsheet.ITSheetBaseRule
 *
 * @author Jun Zhou
 * @date 12:39 2019/7/26
 **/
public interface ITicketBaseRule {


    String FACT_TICKET = "ticket";


    /**
     * @return boolean
     * @Author Jun
     * @Description TODO
     * @Date 2019/8/13 17:48
     * @Param [ticket]
     **/
    boolean condition(@Fact(FACT_TICKET) TenantTicketDTO ticket);

    /**
     * @return void
     * @Author Jun
     * @Description TODO
     * @Date 2019/8/13 17:46
     * @Param [ticket]
     **/
    void action(@Fact(FACT_TICKET) TenantTicketDTO ticket);
}
